package cv.vender.http.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class clsVenderBean {

    private String Type;
    private int Vid;
    private int CHGEStat;
    private int BILLStat;
    private int IRErrCnt;
    private int LstSltE;
    private int CoinCnt;
    private int BllCnt;
    private int Ver;
    private int err;
    private int printErr;

    public int getPrintErr() {
        return printErr;
    }

    public void setPrintErr(int printErr) {
        this.printErr = printErr;
    }


    public String getType() {
        return Type;
    }

    public void setType(String type) {
        Type = type;
    }

    public int getVid() {
        return Vid;
    }

    public void setVid(int vid) {
        Vid = vid;
    }

    public int getCHGEStat() {
        return CHGEStat;
    }

    public void setCHGEStat(int cHGEStat) {
        CHGEStat = cHGEStat;
    }

    public int getBILLStat() {
        return BILLStat;
    }

    public void setBILLStat(int bILLStat) {
        BILLStat = bILLStat;
    }

    public int getIRErrCnt() {
        return IRErrCnt;
    }

    public void setIRErrCnt(int iRErrCnt) {
        IRErrCnt = iRErrCnt;
    }

    public int getLstSltE() {
        return LstSltE;
    }

    public void setLstSltE(int lstSltE) {
        LstSltE = lstSltE;
    }

    public int getCoinCnt() {
        return CoinCnt;
    }

    public void setCoinCnt(int coinCnt) {
        CoinCnt = coinCnt;
    }

    public int getBllCnt() {
        return BllCnt;
    }

    public void setBllCnt(int bllCnt) {
        BllCnt = bllCnt;
    }

    public int getVer() {
        return Ver;
    }

    public void setVer(int ver) {
        Ver = ver;
    }

    public int getErr() {
        return err;
    }

    public void setErr(int err) {
        this.err = err;
    }

    public JSONObject ToJsonObject() {


        JSONObject jsonobj = new JSONObject();
        try {
            jsonobj.put("Type", "VENDER");
            jsonobj.put("Vid", Vid);
            jsonobj.put("CHGEStat", CHGEStat);
            jsonobj.put("BILLStat", BILLStat);
            jsonobj.put("PRNTERR", printErr);
            jsonobj.put("IRErrCnt", IRErrCnt);
            jsonobj.put("LstSltE", LstSltE);
            jsonobj.put("CoinCnt", CoinCnt);
            jsonobj.put("BllCnt", BllCnt);

            jsonobj.put("Ver", Ver);
            jsonobj.put("err", err);
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return jsonobj;
    }
}
